package dk.hewison.client.data.gwtrpc;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import dk.hewison.client.data.MediaServerAsync;
import dk.hewison.client.domain.Directory;

/**
 * @author John Hewison
 * @author $LastChangedBy: john.hewison $:  $ $LastChangedDate: 2009-02-04 20:02:52 +0000 (Wed, 04 Feb 2009) $:
 * @version $Revision: 360 $:
 */
public class GwtRpcServiceFacade implements MediaServerAsync {
    private static GwtRpcServiceFacade instance = (GwtRpcServiceFacade) GWT.create(MediaServerAsync.class);

    public void getDirectoryImageNames(Directory directory, AsyncCallback<Directory> asyncCallback) {
        instance.getDirectoryImageNames(directory, asyncCallback);
    }

    public void getDirectory(Directory directory, AsyncCallback<Directory> callback) {
        instance.getDirectory(directory, callback);
    }

}
